<script type="application/ld+json" data-test-id="post-json-ld">
  {
    "@context": "https://schema.org",
    "@type": "BlogPosting",
    "headline": "<%= post.title %>",
    "image": <%= post.image.attached? ? [spree_image_url(post.image, width: 1200, height: 675)].to_json.html_safe : [].to_json.html_safe %>,
    "datePublished": "<%= post.published_at&.iso8601 %>",
    "dateModified": "<%= post.updated_at&.iso8601 %>",
    "author": [
      {
        "@type": "Person",
        "name": "<%= post.author_name %>"
      }
    ]
  }
</script>

<script type="application/ld+json" data-test-id="post-breadcrumbs-json-ld">
  <%= posts_json_ld_breadcrumbs(post).to_json.html_safe %>
</script>
